from crm.models import Grade
from django import template

register =template.Library()

@register.inclusion_tag('crm/grade_pub.html')
def grades(value):
    grade = Grade.objects.all()
    return {'grade':grade,'stu':value}
